{% load i18n %}
<!DOCTYPE html>
<html>
<head>
<title>OWMX</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="/styles/a.css" media="screen">
<script type="text/javascript" src="/js/jquery-1.7.1.min.js"></script>
</head>
<script type="text/javascript">
$(document).ready(function(){
	$('#id_username').focus();
});
</script>
<body>
<div id="a">
  <header> <a href="/admin" title="Przejdź do strony głównej"><strong>OWMX</strong> LOGISTIC</a>
    <p>Aby uzyskać dostęp musisz się zalogować.</p>
  </header>
  <div id="b">
    <article style="border:none; margin-left:20%">
    <form action="{{ app_path }}" method="post">{% csrf_token %}
<span class="error">{{ form.non_field_errors }}</span>	
  <div class="form-row">
    <label for="id_username" class="required">{% trans 'Username:' %} {{ form.username.errors }}</label> {{ form.username }}
  </div>
  <div class="form-row">
    <label for="id_password" class="required">{% trans 'Password:' %} {{ form.password.errors }}</label> {{ form.password }}
    <input type="hidden" name="this_is_the_login_form" value="1" />
    <input type="hidden" name="next" value="{{ next }}" />
  </div>
  <input class="button" type="submit" value="{% trans 'Log in' %}" />
</form>
    </article>
  </div>
  <footer>
    <p><!-- Template Design &amp; Markup by <a href="http://jabz.net/contact/jonas-jacek">Jonas Jacek</a> | <a href="http://owmx.com/" title="Free HTML5 &amp; CSS3 Web Templates">Free Web Templates</a>.--></p>
  </footer>
</div>
</html>
